<template>
  <div>
  <van-list
  @load="onLoad"
>
  <van-cell v-for="item in list" :key="item.id" :title="item.name" />


</van-list>


  </div>
</template>

<script>
import { ref } from 'vue';
import http from "../../http";

export default {
  setup() {
    const list = ref([]);
    const onLoad = () => {
      http.get('patient/?doctorid=1').then(res=>{
        list.value = res.data.list
      })
    };

    return {
      list,
      onLoad,
    };
  },
};

</script>

<style>

</style>